package com.dongchen.designpatter.chapter05.methodfactory.sample01;

import lombok.extern.slf4j.Slf4j;

/**
 * @author dongchen
 * @time 2021/9/17
 */
@Slf4j
public class Client {
    public static void main(String[] args) {
        TV tv ;
        TVFactory factory = (TVFactory) XMLUtil.getBean();
        tv = factory.productTV();
        tv.play();

    }
}
